from selenium import webdriver  # 导入webdriver包

#初始化driver
def initDriver(browerType="Chrome",browerDriverPath=None,timeout=30):
    if browerType=="Chrome":
        driver = None
        if browerDriverPath is None:
            driver = webdriver.Chrome()
        else:
            driver = webdriver.Chrome(executable_path=browerDriverPath)
        driver.maximize_window()
        driver.implicitly_wait(timeout)
        return driver
    elif browerType=="Firebox":
        pass
